﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlugIn.Configuration
{
    /// <summary>
    /// 组件配置项类
    /// 作者：Zuowenjun
    /// 2016-3-30
    /// </summary>
    public class ComponentElement : ConfigurationElement
    {

        [ConfigurationProperty("fileName", IsRequired = true, IsKey = true)]
        public string FileName
        {
            get { return this["fileName"].ToString(); }
            set { this["fileName"] = value; }
        }

        [ConfigurationProperty("entryType", IsRequired = true)]
        public string EntryType
        {
            get { return this["entryType"].ToString(); }
            set { this["entryType"] = value; }
        }

        [ConfigurationProperty("sortNo", IsRequired = false, DefaultValue = 0)]
        public int SortNo
        {
            get { return Convert.ToInt32(this["sortNo"]); }
            set { this["sortNo"] = value; }
        }
    }
}
